<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <base th:href="@{/}">
</head>
<body>
    <h1>超时用户更新页面</h1>
    <hr>
    <form action="#">
        <!--div的class 为error是验证错误，ok是验证成功-->
        <div>
            <label for="userName">用户名称：</label>
            <input type="text" th:value="${user.name}" name="userName" id="userName" placeholder="韩露"/>
            <span>*</span>
        </div>

        <div>
            <label>用户性别：</label>
            <select name="">
                <option value="0" th:selected="${user.sex == 0}">男</option>
                <option value="1" th:selected="${user.sex == 1}">女</option>
            </select>
        </div>
        <div>
            <label for="data">出生日期：</label>
            <input type="text" name="data" th:value="${user.birthday}" id="data" placeholder="2016年2月1日"/>
            <span>*</span>
        </div>
        <div>
            <label for="userphone">用户电话：</label>
            <input type="text" th:value="${user.phone}" name="userphone" id="userphone" placeholder="13533667897"/>
            <span>*</span>
        </div>
        <div>
            <label for="userAddress">用户地址：</label>
            <input type="text" th:value="${user.location}" name="userAddress" id="userAddress" placeholder="北京"/>
        </div>
        <div>
            <label>用户类别：</label>
            <input type="radio" name="userlei" th:checked="${user.type==2}"/>管理员
            <input type="radio" name="userlei" th:checked="${user.type==1}"/>经理
            <input type="radio" name="userlei" th:checked="${user.type==0}"/>普通用户

        </div>
        <div class="providerAddBtn">
            <!--<a href="#">保存</a>-->
            <!--<a href="userList.html">返回</a>-->
            <input type="button" value="保存" onclick="history.back(-1)"/>
            <input type="button" value="返回" onclick="history.back(-1)"/>
        </div>
    </form>

</body>
</html>